package org.zasadnyy.redlions.players.shared.remote;

import java.util.List;

import org.zasadnyy.redlions.players.shared.model.PlayerItem;
import org.zasadnyy.redlions.players.shared.model.TournamentItem;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface PlayersCrudRemoteAsync {

	void getPlayerById(String id, AsyncCallback<PlayerItem> callback);

	void getAllPlayers(AsyncCallback<List<PlayerItem>> callback);

	void addOrEditPlayer(PlayerItem player, AsyncCallback<Void> callback);

	void deletePlayerById(String id, AsyncCallback<Void> callback);

	void getAllTournaments(AsyncCallback<List<TournamentItem>> callback);

	void addOrEditTournment(TournamentItem tournament,
			AsyncCallback<Void> callback);

	void deleteTournamentById(String id, AsyncCallback<Void> callback);

}
